package com.mrd.modules.generator.utils;

/**
 * 列的属性
 * 
 * @author han
 */
public class ColumnEntity {
  // 列名
  private String columnName;
  // 列名类型
  private String dataType;
  // 列名备注
  private String comments;

  // 属性名称(第一个字母大写)，如：user_name => UserName
  private String attrName;
  // 属性名称(第一个字母小写)，如：user_name => userName
  private String attrname;
  // 属性类型
  private String attrType;
  // auto_increment
  private String extra;
  // 是否主键
  private int isPk = 0;

  /********** 扩展字段 **********/
  // 字段长度
  private String columnSize;
  // 默认值
  private String columnDef;
  // 是否允许为空(0否，1是)
  private Integer isNullable;
  // 是否列表字段(0否，1是)
  private String isList;
  // 是否查询字段(0否，1是)
  private String isQuery;
  // 是否表单显示(0否，1是)
  private String isForm;
  // 查询方式（等于、不等于、大于、小于、范围、左LIKE、右LIKE、左右LIKE）
  private String queryType;
  // 字段生成方案（文本框、文本域、下拉框、复选框、单选框、字典选择、人员选择、部门选择、区域选择）
  private String inputType;
  // 字典分组
  private String dictGroup;
  // 验证规则
  private String regexValid;
  // 校验类型
  private String validType;
  // 最大长度
  private Integer maxSize;
  // 最小长度
  private Integer minSize;
  // 最大值
  private String maxValue;
  // 最小值
  private String minValue;
  // 为空提示
  private String nullmsg;
  // 查询模式
  private String queryModel;

  // 显示表单类型
  private String formType;

  // JAVA字段名
  private String javaField;

  // JAVA类型
  private String javaType;

  public String getColumnName() {
    return columnName;
  }

  public void setColumnName(String columnName) {
    this.columnName = columnName;
  }

  public String getDataType() {
    return dataType;
  }

  public void setDataType(String dataType) {
    this.dataType = dataType;
  }

  public String getComments() {
    return comments;
  }

  public void setComments(String comments) {
    this.comments = comments;
  }

  public String getAttrname() {
    return attrname;
  }

  public void setAttrname(String attrname) {
    this.attrname = attrname;
  }

  public String getAttrName() {
    return attrName;
  }

  public void setAttrName(String attrName) {
    this.attrName = attrName;
  }

  public String getAttrType() {
    return attrType;
  }

  public void setAttrType(String attrType) {
    this.attrType = attrType;
  }

  public String getExtra() {
    return extra;
  }

  public void setExtra(String extra) {
    this.extra = extra;
  }

  public int isPk() {
    return isPk;
  }

  public void setPk(int isPk) {
    this.isPk = isPk;
  }

  public int getIsPk() {
    return isPk;
  }

  public void setIsPk(int isPk) {
    this.isPk = isPk;
  }

  public String getColumnSize() {
    return columnSize;
  }

  public void setColumnSize(String columnSize) {
    this.columnSize = columnSize;
  }

  public String getColumnDef() {
    return columnDef;
  }

  public void setColumnDef(String columnDef) {
    this.columnDef = columnDef;
  }

  public Integer getIsNullable() {
    return isNullable;
  }

  public void setIsNullable(Integer isNullable) {
    this.isNullable = isNullable;
  }

  public String getIsList() {
    return isList;
  }

  public void setIsList(String isList) {
    this.isList = isList;
  }

  public String getIsQuery() {
    return isQuery;
  }

  public void setIsQuery(String isQuery) {
    this.isQuery = isQuery;
  }

  public String getIsForm() {
    return isForm;
  }

  public void setIsForm(String isForm) {
    this.isForm = isForm;
  }

  public String getQueryType() {
    return queryType;
  }

  public void setQueryType(String queryType) {
    this.queryType = queryType;
  }

  public String getInputType() {
    return inputType;
  }

  public void setInputType(String inputType) {
    this.inputType = inputType;
  }

  public String getDictGroup() {
    return dictGroup;
  }

  public void setDictGroup(String dictGroup) {
    this.dictGroup = dictGroup;
  }

  public String getRegexValid() {
    return regexValid;
  }

  public void setRegexValid(String regexValid) {
    this.regexValid = regexValid;
  }

  public String getValidType() {
    return validType;
  }

  public void setValidType(String validType) {
    this.validType = validType;
  }

  public Integer getMaxSize() {
    return maxSize;
  }

  public void setMaxSize(Integer maxSize) {
    this.maxSize = maxSize;
  }

  public Integer getMinSize() {
    return minSize;
  }

  public void setMinSize(Integer minSize) {
    this.minSize = minSize;
  }

  public String getMaxValue() {
    return maxValue;
  }

  public void setMaxValue(String maxValue) {
    this.maxValue = maxValue;
  }

  public String getMinValue() {
    return minValue;
  }

  public void setMinValue(String minValue) {
    this.minValue = minValue;
  }

  public String getNullmsg() {
    return nullmsg;
  }

  public void setNullmsg(String nullmsg) {
    this.nullmsg = nullmsg;
  }

  public String getQueryModel() {
    return queryModel;
  }

  public void setQueryModel(String queryModel) {
    this.queryModel = queryModel;
  }

  public String getFormType() {
    return formType;
  }

  public void setFormType(String formType) {
    this.formType = formType;
  }

  public String getJavaField() {
    return javaField;
  }

  public void setJavaField(String javaField) {
    this.javaField = javaField;
  }

  public String getJavaType() {
    return javaType;
  }

  public void setJavaType(String javaType) {
    this.javaType = javaType;
  }

}
